import request from '@/utils/request'

// 查询咖啡菜单列表
export function listCoffeemenu(query) {
  return request({
    url: '/coffeemenu/coffeemenu/list',
    method: 'get',
    params: query
  })
}

// 查询咖啡菜单详细
export function getCoffeemenu(productId) {
  return request({
    url: '/coffeemenu/coffeemenu/' + productId,
    method: 'get'
  })
}

// 新增咖啡菜单
export function addCoffeemenu(data) {
  return request({
    url: '/coffeemenu/coffeemenu',
    method: 'post',
    data: data
  })
}

// 修改咖啡菜单
export function updateCoffeemenu(data) {
  return request({
    url: '/coffeemenu/coffeemenu',
    method: 'put',
    data: data
  })
}

// 删除咖啡菜单
export function delCoffeemenu(productId) {
  return request({
    url: '/coffeemenu/coffeemenu/' + productId,
    method: 'delete'
  })
}
